#!/bin/bash

ssh openstack@172.16.0.1 'source OpenStackInstaller/demorc && for vm in `nova list | grep ACTIVE | tr -s \  | cut -d \  -f 4 | sort`; do echo -n "+++ $vm +++ " && ping -W 1 -c 1 `nova show $vm | grep vmnet | tr -s \  | cut -d \  -f 6` | grep transmitted; done'
